import App from "@/App.tsx";
import { store } from "@/store";
import { Provider } from "react-redux";
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from "react-router-dom";
// 禁止用户缩放页面
document.addEventListener('wheel', (event) => {
    if (event.ctrlKey) {
        event.preventDefault();
    }
});
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
    <Provider store={store}>
        <BrowserRouter future={{
            v7_startTransition: true, // 启用 v7_startTransition 行为
            v7_relativeSplatPath: true // 启用 v7_relativeSplatPath 行为
        }} data-aria-hidden={"true"} aria-hidden={"true"}>
            <App />
        </BrowserRouter>
    </Provider>
)